package cn.zwx.common.rocket.producer.service;

import cn.zwx.base.exception.BizWrapException;
import cn.zwx.common.rocket.producer.bo.MessageBO;
import org.apache.rocketmq.client.producer.SendResult;

/**
 * @author zhangwenxue
 */
public interface TransactionMqProducerService  extends MqProducerService{

    /**
     *  发送消息
     * @param message 消息信息体信息
     * @param args 请求参数 没有可以不用填写
     * @return org.apache.rocketmq.client.producer.SendResult
     * @author zhangwenxue
     * @throws BizWrapException 业务异常
     **/
    SendResult sendMsg(MessageBO message, Object args) throws BizWrapException;
}
